package org.future.esb.inboundEndpoint;
/**
 *@date   2010-4-12 下午04:05:19
 *@author dycc
 *@file   org.future.esb.SoapService.java
 */
public class SoapService {
	private String tagName = "axis:soap-service";
	// interface
	private String interfaceName = "";
	/**
	 * 校验
	 * @return
	 */
	public boolean validate(){
		boolean result = true;
		if(interfaceName == null || interfaceName.trim().equals("")){
			return false;
		}
		return result;
	}
	/**
	 * toString
	 */
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("<" + tagName);
		sb.append(" interface=\"" + getInterface() + "\"");
		sb.append("/>");
		return sb.toString();
	}
	
	public String getInterface() {
	    return interfaceName;
    }
	public void setInterface(String interfaceName) {
	    this.interfaceName = interfaceName;
    }
}
